package com.ruoyi.knowledge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.knowledge.mapper.QualityDiseasesCatalogueDetailMapper;
import com.ruoyi.knowledge.domain.QualityDiseasesCatalogueDetail;
import com.ruoyi.knowledge.service.IQualityDiseasesCatalogueDetailService;

/**
 * 常见质量通病目录详情Service业务层处理
 * 
 * @author zhaogang
 * @date 2024-07-14
 */
@Service
public class QualityDiseasesCatalogueDetailServiceImpl implements IQualityDiseasesCatalogueDetailService 
{
    @Autowired
    private QualityDiseasesCatalogueDetailMapper qualityDiseasesCatalogueDetailMapper;

    /**
     * 查询常见质量通病目录详情
     * 
     * @param catalogueDetailId 常见质量通病目录详情主键
     * @return 常见质量通病目录详情
     */
    @Override
    public QualityDiseasesCatalogueDetail selectQualityDiseasesCatalogueDetailByCatalogueDetailId(Long catalogueDetailId)
    {
        return qualityDiseasesCatalogueDetailMapper.selectQualityDiseasesCatalogueDetailByCatalogueDetailId(catalogueDetailId);
    }

    /**
     * 查询常见质量通病目录详情列表
     * 
     * @param qualityDiseasesCatalogueDetail 常见质量通病目录详情
     * @return 常见质量通病目录详情
     */
    @Override
    public List<QualityDiseasesCatalogueDetail> selectQualityDiseasesCatalogueDetailList(QualityDiseasesCatalogueDetail qualityDiseasesCatalogueDetail)
    {
        return qualityDiseasesCatalogueDetailMapper.selectQualityDiseasesCatalogueDetailList(qualityDiseasesCatalogueDetail);
    }

    /**
     * 新增常见质量通病目录详情
     * 
     * @param qualityDiseasesCatalogueDetail 常见质量通病目录详情
     * @return 结果
     */
    @Override
    public int insertQualityDiseasesCatalogueDetail(QualityDiseasesCatalogueDetail qualityDiseasesCatalogueDetail)
    {
        return qualityDiseasesCatalogueDetailMapper.insertQualityDiseasesCatalogueDetail(qualityDiseasesCatalogueDetail);
    }

    /**
     * 修改常见质量通病目录详情
     * 
     * @param qualityDiseasesCatalogueDetail 常见质量通病目录详情
     * @return 结果
     */
    @Override
    public int updateQualityDiseasesCatalogueDetail(QualityDiseasesCatalogueDetail qualityDiseasesCatalogueDetail)
    {
        return qualityDiseasesCatalogueDetailMapper.updateQualityDiseasesCatalogueDetail(qualityDiseasesCatalogueDetail);
    }

    /**
     * 批量删除常见质量通病目录详情
     * 
     * @param catalogueDetailIds 需要删除的常见质量通病目录详情主键
     * @return 结果
     */
    @Override
    public int deleteQualityDiseasesCatalogueDetailByCatalogueDetailIds(Long[] catalogueDetailIds)
    {
        return qualityDiseasesCatalogueDetailMapper.deleteQualityDiseasesCatalogueDetailByCatalogueDetailIds(catalogueDetailIds);
    }

    /**
     * 删除常见质量通病目录详情信息
     * 
     * @param catalogueDetailId 常见质量通病目录详情主键
     * @return 结果
     */
    @Override
    public int deleteQualityDiseasesCatalogueDetailByCatalogueDetailId(Long catalogueDetailId)
    {
        return qualityDiseasesCatalogueDetailMapper.deleteQualityDiseasesCatalogueDetailByCatalogueDetailId(catalogueDetailId);
    }
}
